﻿<%@ Page Title="Supervisor"  Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Supervisor.aspx.cs" Inherits="SquidConsult.UI.Supervisor._default" %>
<%@ Register src="../Controls/RolesForUser.ascx" tagname="RolesForUser" tagprefix="ctl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style6
        {
            width: 36px;
            height: 52px;
        }
        .style1
        {
            font-size: x-large;
            text-align: center;
            width: 851px;
            height: 52px;
        }
        .style7
        {
            height: 52px;
        }
        .style2
        {
            width: 36px;
        }
        .style3
        {
            width: 851px;
        }
        .style5
        {
        }
        .style8
        {
            font-size: medium;
        }
        .style4
        {
        }
        .style9
        {
        }
        .style10
        {
            height: 27px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Supervisor Page</h1>
    <table style="width:100%;">
        <tr>
            <td class="style6">
            </td>
            <td class="style1">
                Approve Expense Report</td>
            <td class="style7">
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                <table style="width: 100%; margin-left: 3px;">
                    <tr>
                        <td rowspan="5">
                            &nbsp;</td>
                        <td class="style9" colspan="2">
                            &nbsp;</td>
                        <td rowspan="5">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <span class="style8">Department Final Total Expense:</span> 
                        </td>
                        <td class="style5">
                            &nbsp;<span class="style8">$</span><asp:Label 
                                ID="ExpenseLabel" runat="server" Font-Size="Medium" CssClass="style8"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style10">
                            <span class="style8">Department Final Budget Remain:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span> 
                        </td>
                        <td class="style10">
                            <span class="style8">$</span><asp:Label 
                                ID="BudgetLabel" runat="server" Font-Size="Medium" CssClass="style8"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <span class="style8">Report Type:</span>&nbsp;
                            <asp:DropDownList ID="ReportDropDownList" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ReportDropDownList_SelectedIndexChanged">
                                <asp:ListItem Value="All Reports"></asp:ListItem>
                                <asp:ListItem Value="Rejected Reports by Account Staff"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style5">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:Label ID="ErrorLabel" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                        <td class="style5">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td class="style4" colspan="2">
                            <asp:GridView ID="ReportGridView" runat="server" 
                                onselectedindexchanged="ReportGridView_SelectedIndexChanged" 
                                AutoGenerateSelectButton="True" onrowcreated="ReportGridView_RowCreated">
                            </asp:GridView>
                            <br />
                            <asp:Panel ID="UpdateStatusPanel" runat="server" Height="42px" Visible="False" 
                                Width="497px">
                                <asp:Label ID="Sup_StatusLabel" runat="server" Text="Change Status:   "></asp:Label>
                                &nbsp;&nbsp;
                                <asp:DropDownList ID="Sup_StatusDDL" runat="server" style="font-size: medium">
                                    <asp:ListItem>OnGoing</asp:ListItem>
                                    <asp:ListItem>Reject</asp:ListItem>
                                    <asp:ListItem>Approved</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;&nbsp;&nbsp;
                                <asp:Button ID="UpdateStatusButton" runat="server" 
                                    onclick="UpdateStatusButton_Click" style="font-size: medium" Text="Confirm" 
                                    OnClientClick = "return confirm('Are you sure to change status?');;" />
                            </asp:Panel>
                            <br />
                            <asp:GridView ID="ExpenseGridView" runat="server" 
                                onselectedindexchanged="ExpenseGridView_SelectedIndexChanged" 
                                AutoGenerateSelectButton="True" onrowcreated="ReportGridView_RowCreated">
                            </asp:GridView>
                            <br />
                            <asp:Panel ID="DLPanel" runat="server" Height="41px" Visible="False" 
                                Width="414px">
                                <asp:Label ID="ReceiptLabel" runat="server" Text="Receipt: " 
                                    style="font-size: medium"></asp:Label>
                                &nbsp;<asp:Button ID="DLButton" runat="server" onclick="DLButton_Click" 
                                    style="font-size: medium" Text="Download" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="DLErrorLabel" runat="server"></asp:Label>
                            </asp:Panel>
                            <br />
                            <span class="style8">&nbsp;&nbsp;&nbsp; </span>&nbsp;&nbsp;&nbsp;
                            <br />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td class="style4" colspan="2">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

